﻿using System;
using System.Collections.Generic;
using System.Linq;
using SqlSugar;
namespace CoreCms.Net.Model.Entities
{
    /// <summary>
    /// 信尔成订单表
    ///</summary>
    [SugarTable("xrc_order")]
    public class XrcOrder
    {
        /// <summary>
        /// 编号 
        ///</summary>
         [SugarColumn(ColumnName="id" ,IsPrimaryKey = true ,IsIdentity = true  )]
         public int Id { get; set; }
        /// <summary>
        /// 团组id 
        /// 默认值: 1
        ///</summary>
         [SugarColumn(ColumnName="gid"    )]
         public int Gid { get; set; }
        /// <summary>
        /// 申请人id 
        ///</summary>
         [SugarColumn(ColumnName="user_id"    )]
         public int UserId { get; set; }
        /// <summary>
        /// 产品id 
        ///</summary>
         [SugarColumn(ColumnName="pro_id"    )]
         public int ProId { get; set; }
        /// <summary>
        /// 经纪人id 
        ///</summary>
         [SugarColumn(ColumnName="broker_id"    )]
         public int? BrokerId { get; set; }
        /// <summary>
        /// 产品名称 
        ///</summary>
         [SugarColumn(ColumnName="pro_name"    )]
         public string ProName { get; set; }
        /// <summary>
        /// 产品类型 
        ///</summary>
         [SugarColumn(ColumnName="pro_type"    )]
         public int ProType { get; set; }
        /// <summary>
        /// 额度结果 
        ///</summary>
         [SugarColumn(ColumnName="reality_quota"    )]
         public decimal RealityQuota { get; set; }
        /// <summary>
        /// 最高佣金 
        ///</summary>
         [SugarColumn(ColumnName="commission"    )]
         public decimal Commission { get; set; }
        /// <summary>
        /// 预留姓名 
        ///</summary>
         [SugarColumn(ColumnName="name"    )]
         public string Name { get; set; }
        /// <summary>
        /// 预留电话 
        ///</summary>
         [SugarColumn(ColumnName="mobile"    )]
         public string Mobile { get; set; }
        /// <summary>
        /// 期望额度 
        ///</summary>
         [SugarColumn(ColumnName="exp_quota"    )]
         public decimal ExpQuota { get; set; }
        /// <summary>
        /// 审批状态，0审批中，1成功，2失败 
        /// 默认值: 0
        ///</summary>
         [SugarColumn(ColumnName = "state")]
        public byte State { get; set; }
        /// <summary>
        /// 审批时间 
        /// 默认值: CURRENT_TIMESTAMP
        ///</summary>
        [SugarColumn(ColumnName = "process_time")]
        public DateTime ProcessTime { get; set; }

        /// <summary>
        /// 是否放款，0未放款，1已放款 
        /// 默认值: 0
        ///</summary>
        [SugarColumn(ColumnName = "isloin")]
        public byte IsLoin { get; set; }

        /// <summary>
        /// 创建时间 
        /// 默认值: CURRENT_TIMESTAMP
        ///</summary>
        [SugarColumn(ColumnName="add_time"    )]
         public DateTime AddTime { get; set; }
        /// <summary>
        /// 更新者 
        ///</summary>
         [SugarColumn(ColumnName="upter"    )]
         public int Upter { get; set; }
        /// <summary>
        /// 备注留言 
        ///</summary>
        [SugarColumn(ColumnName = "remark")]
        public string Remark { get; set; }
        /// <summary>
        /// 更新时间 
        /// 默认值: CURRENT_TIMESTAMP
        ///</summary>
        [SugarColumn(ColumnName="up_time"    )]
         public DateTime UpTime { get; set; }
        /// <summary>
        /// 是否删除 
        /// 默认值: b'0'
        ///</summary>
         [SugarColumn(ColumnName="delete"    )]
         public bool Delete { get; set; }
    }
}
